//
//  AppDelegate.swift
//  SinaWeibo
//
//  Created by yimin on 16/1/11.
//  Copyright © 2016年 yimin. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        //1.实例化 window 对象
        window=UIWindow(frame: UIScreen.mainScreen().bounds)
        //2.设置背景颜色 
        window?.backgroundColor=UIColor.redColor()
        //3.设置跟视图可控制器
        window?.rootViewController=MainViewController()
        //3.讲window 窗口设置位可视化
        window?.makeKeyAndVisible()
        return true
    }


}

